<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Testing Buttons</title>
</h:head>
      
<h:body>
<h:form>
<p:button outcome="product" value="Button" icon="ui-icon-star">
    <f:param name="productId" value="10" />
</p:button>

<p:button outcome="product" value="Button With Icon" icon="ui-icon-star">
    <f:param name="productId" value="20" />
</p:button>

<p:button outcome="product" icon="ui-icon-star" title="Icon Only">
    <f:param name="productId" value="30" />
</p:button>

<p:button outcome="product" value="Disabled Button" icon="ui-icon-star" disabled="true">
    <f:param name="productId" value="40" />
</p:button>

<p:commandButton value="Command Button" id="ajax" styleClass="ui-priority-primary">
</p:commandButton>  
 </h:form>
<h:form>  
    <p:growl id="messages"/>  
    <p:splitButton value="Save" actionListener="#{buttonBean.save}" update="messages" icon="ui-icon-disk">  
        <p:menuitem value="Update" actionListener="#{buttonBean.update}" update="messages" icon="ui-icon-arrowrefresh-1-w"/>  
        <p:menuitem value="Delete" actionListener="#{buttonBean.delete}" ajax="false" icon="ui-icon-close"/>  
        <p:separator />  
        <p:menuitem value="Homepage" url="http://www.primefaces.org" icon="ui-icon-extlink"/>  
    </p:splitButton>  
</h:form>  


         
</h:body>
</html>
                    